package idcard;
import framework.Product;
/**
 * @Author:DarknessShadow
 * @description:IDCard类是产品Product类的子类
 * @date 2020/5/11 13:47
 */
public class IDCard extends Product {

    private String owner;
    private int id;

    IDCard(String owner) {
        System.out.println("制作" + owner + "的ID卡。");
        this.owner = owner;
    }

    @Override
    public void use() {
        System.out.println("使用" + owner + "的ID卡,所对应的编号为：" + id );
    }

    public String getOwner() {
        return owner;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getId() {
        return id;
    }
}
